package com.yjn.blog.model.http;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * Classname: RegistReq
 * Package: com.yjn.blog.model.http
 * Description:
 *
 * @Author 余集楠
 * @Create 2024/7/16 0016 20:24
 * @Version 1.8
 */
@Data
public class RegistReq implements Serializable {
      @NotBlank(message="用户名不能为空")
      private String username;

      @NotBlank(message="密码不能为空")
      private String password;

      private String email;

      public String getUsername() {
            return username;
      }

      public void setUsername(String username) {
            this.username = username;
      }

      public String getPassword() {
            return password;
      }

      public void setPassword(String password) {
            this.password = password;
      }

      public String getEmail() {
            return email;
      }

      public void setEmail(String email) {
            this.email = email;
      }
}
